#ifndef XGAME_H
#define XGAME_H

class XLevel;
class XPlayer;
class HTMLog;
class XObjList;

class XGame
{
    public:
        XGame(HTMLog * logger);
        ~XGame();
        Uint32 dT,oldT;
        void init();
        void drawScene();
        void process();
        void processInput();
        void systemInit();
        SDL_Surface * getScreen() { return screen; }
        
    private:
        XPlayer * player;
        HTMLog * log;
        XLevel * level;
        XObjList * pObjList;
        SDL_Surface *screen;

    enum STATE
    {
        RUN,
        MENU,
        PAUSE,
    };

    STATE GM_STATE;
};

#endif // XGAME_H
